« first day (4372 days earlier)      last day (567 days later) » 

6:37 PM
@bwoebi do you have any notes on how to compile PHP from source on OSX? e.g. I'm running into "error: bison 3.0.0 or later"
or anyone else ofc.
 
@Danack I installed bison with brew and add it to my path before compiling.
env PATH="/usr/local/opt/bison@3.4/bin:/usr/local/opt/openssl/bin:$PATH" PKG_CONFIG_PATH=/usr/local/opt/openssl@1.1/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig LDFLAGS="-L/usr/local/opt/bison/lib" EXTENSION_DIR="/usr/local/lib/php/8.1/extensions"
Paths will be different on an M1 mac.
Or of course if you install manually instead of with brew.
 
@Trowski hmm. did you get something special to get later than bison 2.7?
 
I don't recall having to request bison 3.x from brew, but maybe.
macOS ships with 2.x for whatever reason.
So brew doesn't link 3.x to avoid breaking other builds, thus you have to manually provide the paths, etc.
 
% brew search bison
==> Formulae
bison bison@2.7
 
I believe brew install bison will install 3.x then.
 
6:49 PM
So formula = fixed older version?
 
In my experience, formula with names including @x.x are for older versions, without for the latest.
 
cool.
 
(This chat software here is trolling me :D) I upgraded Bison with brew and configurated the path in a similar way. A simple brew install bison fixed the outdated version for me and installed the recent version.
 
any advice on getting an openssl package recognised? Brew says I have openssl@3 installed, but PHP configure gives:
error: Package requirements (openssl >= 1.0.2) were not met:

No package 'openssl' found
 
which php version?
and, do you have pkgconfig installed?
 
7:02 PM
pkgconfig installed, PHP version is a fork of master from about 6 months ago.
oh, looks like a path issue.
 
You're welcome!
:-D
 
IIRC, I installed openssl 1.1 for compiling PHP
Looks that way from the env command I pasted before.
 
 
3 hours later…
10:45 PM
Would it make sense to have a core language feature to freeze mutable objects into immutable ones? E.g. after being built by a builder pattern
 
JRL
we should have a way to make normal object immutable first i would think
 
@JRL How's that different to what I said? :)
Wait
You mean readonly properties?
 
JRL
there isn't a way right now to make classes immutable in the class definition
no, readonly != immutable
 
Because of properties having objects that have non-readonly props?
 
JRL
yes
 
10:51 PM
:/
Tho to be fair, I don't know of any FP lang that has such guarantees either
Except Haskell, which is pure
Wasn't readonly classes supposed to fix this? Only allowing other readonly classes as props?
Did I make that up?
Nothing about it in the RFC
Shouldn't the RFC contain such a case as an example of what's not covered?
nvm, the parent rfc covers it
 

« first day (4372 days earlier)      last day (567 days later) »